function [out] = alternatemap(inp)
angle11 = pi;
angle00 = pi/2;
angle01 = pi/2;
angle10 = pi;
if(angle(inp) == pi/4)
    out = (1.*exp(1i*angle11))*inp;
elseif(angle(inp) == 3*pi/4)
    out = (1.*exp(-1i*angle01))*inp;
elseif(angle(inp) == -3*pi/4)
    out = (1.*exp(1i*angle00))*inp;
elseif(angle(inp) == -pi/4)
    out = (1.*exp(1i*angle10))*inp;
end